import clr
import os
import sys

# 获取当前路径
filepath = os.path.dirname(os.path.realpath(__file__))
print(filepath)
#filepath = 'd:\ps'
sys.path.append(filepath)
clr.FindAssembly('DC.dll')
from DC import *


class MyPrint:

    def __init__(self):
        self.ps = PrintService()

    def doprint2(self, code, txt):
        ret = self.ps.do_print2(code, txt)
        return ret

    def doprint(self, code, txt):
        ret = self.ps.do_print(code, txt)
        return ret
